1 {capture name="title"} - {l}User Management{/l}{/capture}
2 {capture assign="in_page_title"}{l}User Management{/l}{/capture}
3
4 {include file="header.tpl"}
5 {include file="top_bar.tpl"}
6
7 {include file="validation.tpl" form_id="submit_form" validators=$validators}
8
9 {literal}
10 <script type="text/javascript">
11 jQuery(function($) {
12 $(document).ready(function(){
13
14 var thumb = $('img#thumb');
15
16 new AjaxUpload('IMG', {
17 action: $('form#submit_form').attr('action'),
18 name: 'image',
19 onSubmit: function(file, extension) {
20 $('div.preview').addClass('loading');
21 },
22 onComplete: function(file, response) {
23 thumb.load(function(){
24 $('div.preview').removeClass('loading');
25 thumb.unbind();
26 });
27 thumb.attr('src', response);
28 }
29 });
30 });
31 });
32 </script>
33
34 {/literal}
35
36 {strip}
37 {if $thank_you}
38 <h3>{l}Information{/l}</h3>
39 <table border="0" class="formPage" align="center">
40 <tr>
41 <td>
42 {l}Thank you for registering. Your account has been created. You may now log in and submit links.{/l}
43 </td>
44 </tr>
45 </table>
46 {elseif $confirmed}
47 <h3>{l}Information{/l}</h3>
48 <table border="0" class="formPage" align="center">
49 <tr>
50 <td>
51 {l}Thank you for confirming your email. Your account has been activated. You may now log in with your username and password.{/l}
52 </td>
53 </tr>
54 </table>
55 {elseif $user_logged}
56 <h3>{l}User Area{/l}</h3>
57
58
59 {if $profileUpdate}
60 <p>{l}Profile updated{/l}</p>
61
62 {/if}
63
64
65 <p> <a href="{$smarty.const.DOC_ROOT}/index.php?uid={$regular_user_details.ID}" title="{l}Browse personal links{/l}">{l}My Submissions{/l}</a></p>
66
67 <p> <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=edit" title="{l}Edit Profile{/l}">{l}Edit Profile{/l}</a>
68 </p>
69 {elseif $agreement_terms}
70 <h3>{l}Registration Agreement Terms{/l}</h3>
71 <table border="0" class="formPage" align="center">
72 <tr>
73 <td>
74 While the administrators and editors of this link directory will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every link. Therefore you acknowledge that all links submitted to this link directory express the views and opinions of the submitter and not the administrators, editors or webmaster (except for posts by these people) and hence will not be held liable.
75 <br /><br />
76 You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other links and/or material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all submitted links is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and editors of this link directory have the right to remove, edit or move any link at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and editors cannot be held responsible for any cracking attempt that may lead to the data being compromised.
77 <br /><br />
78 This link directory uses sessions to store information. These do not contain any of the information you have entered above; they serve only to improve your viewing and submit pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).
79 <br /><br />
80 By clicking Register below you agree to be bound by these conditions.
81 </td>
82 </tr>
83 <tr>
84 <td>
85 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register&agreed=true" title="{l}I Agree to these terms{/l}">{l}I Agree to these terms{/l}</a>
86 </td>
87 </tr>
88 <tr>
89 <td>
90 <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register&agreed=false" title="{l}I Do Not Agree to these terms{/l}">{l}I Do Not Agree to these terms{/l}</a>
91 </td>
92 </tr>
93 </table>
94
95 {elseif $confirm eq 1}
96 {if $password_recovered eq 1}
97 <h3>{l}Information{/l}</h3>
98 <table border="0" class="formPage" align="center">
99 <tr>
100 <td>
101 {l}You can now login with your new password.{/l}
102 </td>
103 </tr>
104 </table>
105
106 {elseif $password_recovered eq 0}
107 <h3>{l}Information{/l}</h3>
108 <table border="0" class="formPage" align="center">
109 <tr>
110 <td class="err">
111 {l}An error occured while saving your new password.{/l}
112 </td>
113 </tr>
114 </table>
115 {/if}
116
117 {elseif $send_password eq 1}
118 {if $email_status eq 1 or $wrong_user_details eq 1}
119 <h3>{l}Information{/l}</h3>
120 <table border="0" class="formPage" align="center">
121 <tr>
122 <td class="{if $email_sent eq 'sent'}msg{else}err{/if}">
123 {if $email_sent eq 'sent'}
124 {l}Please check your email to confirm your new password request.{/l}
125 {elseif $email_sent eq 'error'}
126 {l}An error occurred while sending the email.{/l}
127 {if $email_error_msg}<br />{$email_error_msg}{/if}
128 {elseif $wrong_user_details}
129 {l}The details you supplied do not match any registered user.{/l}
130 {else}
131 {l}Unknown error.{/l}
132 {/if}
133 </td>
134 </tr>
135 </table>
136 {else}
137 <form method="post" action="" id="submit_form">
138 <h3>{l}Recover Password{/l}</h3>
139 <table border="0" class="formPage" align="center" width="auto">
140 <tr>
141 <td class="label"><span class='req'>*</span>{l}Login{/l}:</td>
142 <td class="smallDesc">
143 <input type="text" name="LOGIN" value="{$LOGIN}" size="20" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" />
144 </td>
145 </tr>
146 <tr>
147 <td class="label"><span class='req'>*</span>{l}Email{/l}:</td>
148 <td class="smallDesc">
149 <input type="text" name="EMAIL" value="{$EMAIL}" size="20" maxlength="255" class="text" />
150 </td>
151 </tr>
152 {if $smarty.const.VISUAL_CONFIRM eq 2}
153 <tr>
154 <td class="label"<span class='req'>*</span>{l}DO THE MATH{/l}:</td>
155 <td class="field">
156 <span style="color: red;">
157 {foreach name=errorList from=$error_list key=errorKey item=errorItem}
158 {if $errorKey == 'DO_MATH'}
159 {if is_array($errorItem)}
160 {$errorItem.remote}<br/>
161 {else}
162 {$errorItem}<br/>
163 {/if}
164 {/if}
165 {/foreach}
166 </span>
167 <font style="font-weight: bold; font-size: 14pt; color: red; margin-right: 10px;">{$DO_MATH_N1} + {$DO_MATH_N2} = </font><input type="text" id="DO_MATH" name="DO_MATH" value='{$DO_MATH}' class="text" style="width: 60px;"/>
168 <br/>
169 <br/>
170 </td>
171 </tr>
172 {/if}
173 {if $smarty.const.VISUAL_CONFIRM eq 1}
174 <tr>
175 <td class="label">
176 <span class='req'>*</span>{l}Confirmation code{/l}
177 <p class="small">{l}This helps prevent automated registrations.{/l}</p>
178 </td>
179 <td class="smallDesc">
180 <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" />
181 <input id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" />
182 <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" />
183 </td>
184 </tr>
185 {/if}
186 <tr>
187 <td> </td>
188 <td><input type="submit" name="send" value="Submit" class="btn" /></td>
189 </tr>
190 </table>
191 <input type="hidden" name="formSubmitted" value="1" />
192 </form>
193 {/if}
194
195 {elseif $user_registration eq 1 or $user_edit eq 1}
196 <form method="post" action="" enctype="multipart/form-data" name="profile_form" id="submit_form">
197 <h3>{l}Registration Information{/l}</h3>
198 <table border="0" class="formPage" align="center" width="auto">
199 {if $profileUpdate}
200 <tr>
201 <td colspan="2"><h3>{l}Profile updated{/l}</h3></td>
202 </tr>
203 {/if}
204 {if $user_registration eq 1}
205 <tr>
206 <td class="label"><span class='req'>*</span>{l}Login{/l}:</td>
207 <td class="smallDesc">
208 <input type="text" name="LOGIN" value="{$LOGIN}" size="20" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" />
209 </td>
210 </tr>
211 {/if}
212 <tr>
213 <td class="label"><span class='req'>*</span>{l}Name{/l}:</td>
214 <td class="smallDesc">
215 <input type="text" name="NAME" value="{$NAME}" size="20" maxlength="{$smarty.const.USER_NAME_MAX_LENGTH}" class="text" />
216 </td>
217 </tr>
218 <tr>
219 <td class="label"><span class='req'>*</span>{l}Password{/l}:</td>
220 <td class="smallDesc">
221 <input type="password" name="PASSWORD" id="PASSWORD" value="" size="20" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" />
222 </td>
223 </tr>
224 <tr>
225 <td class="label"><span class='req'>*</span>{l}Confirm Password{/l}:</td>
226 <td class="smallDesc">
227 <input type="password" name="PASSWORDC" id="PASSWORDC" value="" size="20" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" />
228 </td>
229 </tr>
230 <tr>
231 <td class="label"><span class='req'>*</span>{l}Language{/l}:</td>
232 <td class="smallDesc">
233 {html_options options=$languages selected=$LANGUAGE name="LANGUAGE"}
234 </td>
235 </tr>
236 <tr>
237 <td class="label"><span class='req'>*</span>{l}Email{/l}:</td>
238 <td class="smallDesc">
239 <input type="text" name="EMAIL" value="{$EMAIL|escape}" size="20" maxlength="255" class="text" />
240 </td>
241 </tr>
242 {if $user_registration eq 0 AND $ALLOW_AUTHOR_INFO eq 1}
243 <tr>
244 <td colspan="2">
245 <h3>{l}Optional Info For About Page{/l}</h3>
246 </td>
247 </tr>
248 <!-- author avatar related -->
249
250 {if $ALLOW_AVATARS eq 1}
251 <!--
252 <tr>
253 <td class="label"><label for="IMG">{l}Upload Personal Photo{/l}:</label></td>
254 <td class="smallDesc">
255 <input type="file" name="IMG" id="IMG" value="{$IMG}" class="text"/><br />
256 </td>
257 </tr>
258 <tr>
259 <td class="label"><label for="DESCRIPTION">{l}Preview Photo{/l}:</label></td>
260 <td class="smallDesc">
261 <div class="preview">
262 <img id="thumb" width="100px" height="100px" src=""/>
263 </div>
264 </td>
265 </tr>
266
267
268 <tr>
269 <td class="label"><label for="DESCRIPTION">{l}Current Photo{/l}:</label></td>
270 <td class="smallDesc">
271 {if $AUTH_IMG}
272 <img src="{$AUTH_IMG}">{else}None{/if}
273 </td>
274 </tr>
275 -->
276 {/if}
277 <!-- end -->
278 {* if user has links posted*}
279 {if $hasLinks > 0}
280 <tr>
281 <td class="label">
282 <input type="checkbox" name="OWNER_NEWSLETTER_ALLOW" {if $OWNER_NEWSLETTER_ALLOW >= 1}checked="checked"{/if} />
283 </td>
284 <td>
285 <p class="small">Allow site administrator to send me newsletters.</p>
286 </td>
287 </tr>
288 {/if}
289 <tr>
290 <td class="label">
291 {l}Post Articles Anonymously{/l}:
292 <p class="small">{l}This will keep your name off of the articles page,{/l}<BR>{l}but admins will still know who wrote each article.{/l}</p>
293 </td>
294 <td class="field">
295 {html_options options=$yesno selected=$ANONYMOUS name="ANONYMOUS"}
296 </td>
297 </tr>
298 <tr>
299 <td class="label">{l}Info{/l}:</td>
300 <td class="field">
301 <textarea name="INFO" rows="3" cols="37" class="text" {formtool_count_chars name="INFO" limit="255" alert=true}>{$INFO|escape|trim}</textarea>
302 <br />
303 {l}Limit{/l}: <input type="text" name="INFO_limit" size="4" class="limit_field" readonly="readonly" value="{$InfoLimit|trim}" />
304 </td>
305 </tr>
306 <tr>
307 <td class="label">{l}Website Name{/l}:</td>
308 <td class="field">
309 <input type="text" name="WEBSITE_NAME" value="{$WEBSITE_NAME|escape|trim}" size="40" maxlength="255" class="text"/>
310 </td>
311 </tr>
312 <tr>
313 <td class="label">{l}Website URL{/l}:</td>
314 <td class="field">
315 <input type="text" name="WEBSITE" value="{if !$WEBSITE}http://{else}{$WEBSITE|escape|trim}{/if}" size="40" maxlength="255" class="text"/>
316 </td>
317 </tr>
318 <tr>
319 <td colspan="2">
320 <h3></h3>
321 </td>
322 </tr>
323 {/if}
324 {if $smarty.const.VISUAL_CONFIRM eq 2}
325 <tr>
326 <td class="label"<span class='req'>*</span>{l}DO THE MATH{/l}:</td>
327 <td class="field">
328 <span style="color: red;">
329 {foreach name=errorList from=$error_list key=errorKey item=errorItem}
330 {if $errorKey == 'DO_MATH'}
331 {if is_array($errorItem)}
332 {$errorItem.remote}<br/>
333 {else}
334 {$errorItem}<br/>
335 {/if}
336 {/if}
337 {/foreach}
338 </span>
339 <font style="font-weight: bold; font-size: 14pt; color: red; margin-right: 10px;">{$DO_MATH_N1} + {$DO_MATH_N2} = </font><input type="text" id="DO_MATH" name="DO_MATH" value='{$DO_MATH}' class="text" style="width: 60px;"/>
340 <br/>
341 <br/>
342 </td>
343 </tr>
344 {/if}
345 {if $smarty.const.VISUAL_CONFIRM eq 1}
346 <tr>
347 <td class="label">
348 <span class='req'>*</span>{l}Confirmation code{/l}
349 <p class="small">{l}This helps prevent automated registrations.{/l}</p>
350 </td>
351 <td class="smallDesc">
352 <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" />
353 <input id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" />
354 <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" />
355 </td>
356 </tr>
357 {/if}
358 <tr>
359 <td> </td>
360 <td><input type="submit" name="send" value="Submit" class="btn" /></td>
361 </tr>
362 </table>
363 <input type="hidden" name="formSubmitted" value="1" />
364 </form>
365 {/if}
366
367 {include file="footer.tpl"}
368 {/strip}